package com.starsea.book.ui.newpage

import android.os.Bundle
import android.view.View
import com.starsea.book.BuildConfig
import com.starsea.book.R
import com.starsea.book.base.BaseFragment
import com.starsea.book.databinding.ActivityAboutUsBinding
import com.starsea.book.ui.newpage.utils.Singleton
import com.starsea.book.utils.viewbindingdelegate.viewBinding

/**
 * @author Lee
 * @createTime 2023-12-26 09 GMT+8
 * @desc :
 */
class AboutUsFragment() : BaseFragment(R.layout.activity_about_us) {

    private val binding by viewBinding(ActivityAboutUsBinding::bind)

    override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {
        binding.tvCopyRight.text = "布灵布灵传媒科技有限公司版权所有\n" +
                "Copyright © 2023-${Singleton.timeStampY(System.currentTimeMillis())}"

        binding.tvVersion.text = "V${BuildConfig.VERSION_NAME}"
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        activity?.setTitle(R.string.about_us)
    }
}